package com.example.bes.dubbo.provider.demo.service.impl;

import com.example.bes.dubbo.api.demo.service.IMessageService;
import com.example.bes.dubbo.api.demo.vo.Message;
import org.apache.dubbo.config.annotation.DubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@DubboService
public class MessageImpl implements IMessageService {

    private static final Logger LOG = LoggerFactory.getLogger(MessageImpl.class);

    @Override
    public Message echo(Message msg) {
        LOG.info(msg.toString());
        return msg;
    }
}
